package com.smart.common.bean.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 角色权限表
 *
 * @author yangbingquan
 * @version 1.0
 * @date 2021/5/12 16:15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "smart_role_permission")
public class RolePermission {
    /**
     * 角色id
     */
    @TableField(value = "role_id")
    private Long roleId;

    /**
     * 资源id
     */
    @TableField(value = "permission_id")
    private Long permissionId;

    public static final String COL_ROLE_ID = "role_id";

    public static final String COL_PERMISSION_ID = "permission_id";
}